﻿#region File and License Information
/*
<File>
	<License>
		Copyright © 2009 - 2017, Daniel Vaughan. All rights reserved.
		This file is part of Calcium (http://calciumsdk.net), 
		which is released under the MIT License.
		See file /Documentation/License.txt for details.
	</License>
	<CreationDate>2015-04-26 19:39:08Z</CreationDate>
</File>
*/
#endregion

using System;

namespace Outcoder.Devices.Power
{
	public class RemainingBatteryChargeEvent
	{
		public object Sender { get; private set; }

		public int PercentRemaining { get; private set; }

		public TimeSpan DischargeTimeRemaining { get; private set; }

		public RemainingBatteryChargeEvent(object sender, int percentRemaining, TimeSpan dischargeTimeRemaining)
		{
			Sender = ArgumentValidator.AssertNotNull(sender, "sender");

			PercentRemaining = percentRemaining;
			DischargeTimeRemaining = dischargeTimeRemaining;
		}
	}
}